<?php

namespace app\webapi\vms\validate;

use app\webapi\common\BaseValidate;

/**
 * @统计验证类
 */
class StatisticsValidate extends BaseValidate
{
    //验证规则
    protected $rule = [
        'type'=>'require|in:1,2'
    ];

    //验证消息
    protected $message = [
        'type.require'=>'type值必填',
        'type.in'=>'type可选值为1,2'
    ];

    //验证场景
    protected $scene = [
        'getTodayVisitStatisticsDate' => ['type']
    ];

}